package com.xyoto.community.enums;

public enum  MessageEnum implements Code{

    /** 留言枚举 */
    MESSAGE_CREATE_FAIL(2060,"消息创建失败"),
    DELETED_QUESTION_COMMENT_REPLY_MESSAGE_FAILED(2061,"删除问答评论回复消息失败"),
    DELETED_QUESTION_COMMENT_MESSAGE_FAILED(2062,"删除问答评论消息失败"),
    DELETED_DYNAMIC_COMMENT_REPLY_MESSAGE_FAILED(2063,"删除动态评论回复消息失败"),
    DELETED_DYNAMIC_COMMENT_MESSAGE_FAILED(2064,"删除动态评论消息失败"),
    DELETED_QUESTION_COMMENT_REPLY_LOVE_MESSAGE_FAILED(2065,"回复点赞记录删除失败"),
    DELETED_QUESTION_COMMENT_LOVE_MESSAGE_FAILED(2066,"评论点赞记录删除失败"),
    DELETED_DYNAMIC_LOVE_MESSAGE_FAILED(2067,"动态点赞记录删除失败"),
    DELETED_DYNAMIC_COMMENT_LOVE_MESSAGE_FAILED(2067,"评论点赞记录删除失败"),
    DELETED_DYNAMIC_COMMENT_REPLY_LOVE_MESSAGE_FAILED(2068,"回复点赞记录删除失败"),
    MESSAGE_DELETE_FAIL(2069,"消息删除失败"),
    ;

    /** 枚举状态码 */
    private int code;

    /** 枚举状态信息 */
    private String msg;

    /**
     * 全参构造器
     *
     * @param code 枚举状态码
     * @param msg 枚举状态值
     */
    MessageEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code ;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
